﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace CommonControl
{
    /// <summary>
    /// 工具类
    /// </summary>
    public class Utils
    {
        public static void WriteTxtLog(string LogMessage)
        {
        }

        public static void WriteTxtLog(Exception LogException)
        {
        }
        /// <summary>
        /// 获取异常信息字符串
        /// </summary>
        /// <param name="ex"></param>
        /// <returns></returns>
        public static string GetRuntimeMessage(Exception ex)
        {
            return ex.Message;
        }
        /// <summary>
        /// 获取异常信息字符串
        /// </summary>
        /// <param name="ex"></param>
        /// <returns></returns>
        public static string GetRuntimeMessage(Exception ex, string DefaultMsg)
        {
            return ex.Message;
        }
    }
}
